import request from "@/utils/request";
// 查询活跃用户
export function  getActiveUser(userType,type) {
  return request({
    url: `/school/system/homepage/activeUser/${userType}/${type}`,
    method: "get",
  });
}
// 今日活跃课程
export function  getActiveCourse() {
  return request({
    url: `/school/system/homepage/activeCourseToday`,
    method: "get",
  });
}
// 历史活跃课程
export function  getActivehistoryCourse(type) {
  return request({
    url: `/school/system/homepage/activeCourseHistory/${type}`,
    method: "get",
  });
}
// 今日课程学习情况
export function  getActiveCourseList(){
  return request({
    url: `/school/system/homepage/courseStudyToday`,
    method: "get",
  });
}
// 课程首次考核通过
export function  getFirstPassCourseList(){
  return request({
    url: `/school/system/homepage/courseAssessmentFirstPass`,
    method: "get",
  });
}
// 今日活跃班级
export function  getactiveClassToday(){
  return request({
    url: `/school/system/homepage/activeClassToday`,
    method: "get",
  });
}
// 历史活跃班级
export function  getActivehistoryClass(type) {
  return request({
    url: `/school/system/homepage/activeClassHistory/${type}`,
    method: "get",
  });
}
// 重考次数占比
export function  getreTestRateOfClassList(){
  return request({
    url: `/school/system/homepage/reTestRateOfClass`,
    method: "get",
  });
}
// 活跃用户
export function  getHomePageDetail(userType,params){
  return request({
    url: `/school/system/homepage/detail/activeUserList/${userType}`,
    method: "get",
    params
  });
}
// 活跃用户排行榜
export function  getActiveuserdetail(userType,params){
  return request({
    url: `/school/system/homepage/detail/activeUserRankList/${userType}`,
    method: "get",
    params
  });
}
// 活跃课程
export function  getHomePageCourseDetail(params){
  return request({
    url: `/school/system/homepage/detail/activeCourseList`,
    method: "get",
    params
  });
}
// 活跃课程排行榜
export function  getactiveCourseDetail(params){
  return request({
    url: `/school/system/homepage/detail/activeCourseRankList`,
    method: "get",
    params
  });
}
// 活跃班级
export function  getactiveclassDetail(params) {
  return request({
    url: `/school/system/homepage/detail/activeClassList`,
    method: "get",
    params
  });
}
// 活跃班级排行榜
export function  getactiveClassSort(params){
  return request({
    url: `/school/system/homepage/detail/activeClassRankList`,
    method: "get",
    params
  });
}
// 今日课程学习情况
export function  getTodaystudyList(params) {
  return request({
    url: `/school/system/homepage/detail/todayCourseStudyList`,
    method: "get",
    params
  });
}

// 今日课程学习情况
export function  getTodaystudyDetail(params) {
  return request({
    url: `/school/system/homepage/detail/todayCourseStudyClassList`,
    method: "get",
    params
  });
}
// 首次通过
export function  getFirstpassList(params) {
  return request({
    url: `/school/system/homepage/detail/courseAssessmentFirstPass`,
    method: "get",
    params
  });
}
// 首次通过详情
export function  getFirstpassDetail(params) {
  return request({
    url: `/school/system/homepage/detail/courseAssessmentFirstPassClassList`,
    method: "get",
    params
  });
}
// 重考
export function  getResetexamList(params) {
  return request({
    url: `/school/system/homepage/detail/reTestRateOfClass`,
    method: "get",
    params
  });
}
